package com.ruoyi.infoCollegial.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.infoCollegial.mapper.InfoCollegialMapper;
import com.ruoyi.infoCollegial.domain.InfoCollegial;
import com.ruoyi.infoCollegial.service.IInfoCollegialService;

/**
 * 院校主Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-16
 */
@Service
public class InfoCollegialServiceImpl implements IInfoCollegialService 
{
    @Autowired
    private InfoCollegialMapper infoCollegialMapper;

    /**
     * 查询院校主
     * 
     * @param id 院校主主键
     * @return 院校主
     */
    @Override
    public InfoCollegial selectInfoCollegialById(Long id)
    {
        return infoCollegialMapper.selectInfoCollegialById(id);
    }

    /**
     * 查询院校主列表
     * 
     * @param infoCollegial 院校主
     * @return 院校主
     */
    @Override
    public List<InfoCollegial> selectInfoCollegialList(InfoCollegial infoCollegial)
    {
        return infoCollegialMapper.selectInfoCollegialList(infoCollegial);
    }

    /**
     * 新增院校主
     * 
     * @param infoCollegial 院校主
     * @return 结果
     */
    @Override
    public int insertInfoCollegial(InfoCollegial infoCollegial)
    {
        return infoCollegialMapper.insertInfoCollegial(infoCollegial);
    }

    /**
     * 修改院校主
     * 
     * @param infoCollegial 院校主
     * @return 结果
     */
    @Override
    public int updateInfoCollegial(InfoCollegial infoCollegial)
    {
        return infoCollegialMapper.updateInfoCollegial(infoCollegial);
    }

    /**
     * 批量删除院校主
     * 
     * @param ids 需要删除的院校主主键
     * @return 结果
     */
    @Override
    public int deleteInfoCollegialByIds(Long[] ids)
    {
        return infoCollegialMapper.deleteInfoCollegialByIds(ids);
    }

    /**
     * 删除院校主信息
     * 
     * @param id 院校主主键
     * @return 结果
     */
    @Override
    public int deleteInfoCollegialById(Long id)
    {
        return infoCollegialMapper.deleteInfoCollegialById(id);
    }
}
